/*****************************************************************************
 *   target.h:  Header file for Philips LPC214x Family Microprocessors
 *
 *   Copyright(C) 2006, Philips Semiconductor
 *   All rights reserved.
 *
 *   History
 *   2005.10.01  ver 1.00    Prelimnary version, first Release
 *
******************************************************************************/
#ifndef __TARGET_H
    #define __TARGET_H
    
    #ifdef __cplusplus
    extern "C"
    {
    #endif

    /* System configuration: Fosc, Fcclk, Fcco, Fpclk must be defined */
    /* Crystal frequence,10MHz~25MHz should be the same as actual status. */
    #define Fosc    12000000

    /* System frequence,should be (1~32)multiples of Fosc,and should be equal or
    less than 60MHz. */
    #define Fcclk   (Fosc * 5)

    /* CCO frequence,should be 2/4/8/16 multiples of Fcclk, ranged from 156MHz to
    320MHz. */
    #define Fcco    (Fcclk * 4)

    /* VPB clock frequence , must be 1/2/4 multiples of (Fcclk / 4). */
    #define Fpclk   (Fcclk / 4) * 1

    extern void TargetInit(void);
    extern void TargetResetInit(void);

    #ifdef __cplusplus
    }
#endif

#endif /* end __TARGET_H */
/******************************************************************************
**                            End Of File
******************************************************************************/
